# create
t = tuple("hello")
print(f"{t = }, {id(t) = }, {len(t) = }")
t = (3, 2, 1)
print(f"{t = }, {id(t) = }, {len(t) = }")
t2 = tuple(t)
print(f"{id(t2) = }")

# cannot assign elements
try:
    t[0] = 2
except Exception as e:
    print(e)

# empty
t1 = tuple()
t2 = ()
print(f"{id(t1) == id(t2) = }")

# method
t3 = tuple("hello world")
print(f'{t3.count("l") = }, {t3.index("l") = }')

# pack
x = 3, 4
y = 1,
x1, x2 = x
print(f"{x = }, {y = }, {x1 = }, {x2 = }")

# operation
y += x
x *= 3
print(f"{x = }, {y = }")
